function createSnowflake() {
  const snowflake = document.createElement("div");
  snowflake.classList.add("snow");

  const randomLeft = Math.random() * window.innerWidth;
  snowflake.style.left = `${randomLeft}px`;

  document.body.appendChild(snowflake);

  setTimeout(() => {
    snowflake.remove();
  }, 11000);
}

setInterval(createSnowflake, 200);
